<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>



    <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?php echo ($seo_title); ?></title>
<meta name="keywords" content="<?php echo ($seo_keywords); ?>" />
<meta name="description" content="<?php echo ($seo_description); ?>" />


<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">

<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<link rel="icon" type="image/png" href="/Statics/Home/img/favicon.png">

<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="/Statics/Home/img/app-icon72x72@2x.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="PLAZOTTA"/>
<link rel="apple-touch-icon-precomposed" href="/Statics/Home/img/app-icon72x72@2x.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="/Statics/Home/img/app-icon72x72@2x.png">
<meta name="msapplication-TileColor" content="#0e90d2">

    <link rel="stylesheet" href="/Statics/Home/css/amazeui.min.css">
<link rel="stylesheet" href="/Statics/Home/css/reset.css">
<link rel="stylesheet" href="/Statics/Home/css/common.css">
<link rel="stylesheet" href="/Statics/Home/css/button.css">

<link rel="stylesheet" href="/Statics/Home/js/sco/css/scojs.css" />




</head>
<body>
<div class="am-g new-top am-padding-xs">


    <div class="am-fl am-padding-horizontal-sm">
        <a href="/"> <img class="am-margin-right-xs" src="/Statics/Home/img/top-icon.png" width="20px"  alt="">济美坊布锦画</a>
       </div>
    <div class="am-fr am-padding-horizontal-sm">
        <!--<i class="am-icon-search am-margin-right-xs" onclick="$('.search').slideToggle();"></i>-->
        <a   href="/Home/Product/cate"><i class="am-icon-search am-margin-right-xs" ></i></a>
        <!--<a class="am-margin-right-xs" href="<?php echo U('User/Favorite/index');?>">收藏</a>-->
        <a class="am-margin-right-xs" href="/Product/cate">筛选</a>
        <a class="" href="<?php echo U('User/Zuji/index');?>">我的记录</a>
    </div>


</div>

<div class="am-g  search am-padding-top-xs" style="display: none">


    <div class="am-u-sm-12">

        <form   method="get" action="<?php echo U('Product/index');?>" class=" " data-am-validator>




            <div class="am-form-group am-form-icon am-margin-0 ">
                <input type="text" class="am-form-field am-input-sm " value="<?php echo I('get.keyword');?>" name="keyword" placeholder="">
                <span class="am-icon-search  "></span>
            </div>


        </form>
    </div>








</div>


<div class="weui_navbar common-border-bottom" style="height:44px;">
    <div class="weui_navbar_item   <?php if(I('get.status') == '1'): ?>active<?php endif; ?>    "

    >
        <a href="<?php echo U('',array('status'=>1));?>">待付款</a>
    </div>
    <div class="weui_navbar_item <?php if(I('get.status') == '2'): ?>active<?php endif; ?> ">
        <a href="<?php echo U('',array('status'=>2));?>">待发货</a>
    </div>
    <div class="weui_navbar_item <?php if(I('get.status') == '3'): ?>active<?php endif; ?> ">
        <a href="<?php echo U('',array('status'=>3));?>"> 待收货</a>
    </div>
    <div class="weui_navbar_item <?php if(I('get.status') == '4'): ?>active<?php endif; ?> ">
        <a href="<?php echo U('',array('status'=>4));?>">待评价</a>
    </div>

<div class="weui_navbar_item <?php if(I('get.status') == ''): ?>active<?php endif; ?> ">
<a href="<?php echo U('');?>">全部</a>
</div>
</div>

<?php if(is_array($_list)): $i = 0; $__LIST__ = $_list;if( count($__LIST__)==0 ) : echo "没有相关信息" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><div class="am-g  well    am-margin-bottom-sm  common-border-bottom ">








        <div class="am-cf  am-padding-0 am-margin-top-sm">

        <?php if(is_array($v['plist'])): $i = 0; $__LIST__ = $v['plist'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class=" am-cf order-list-item     am-margin-vertical-sm    ">


                <div class="am-u-sm-4 am-text-center  list_img"><img src="<?php echo ($vo["thumb"]); ?>" class="am-img-responsive"></div>
                <div class="am-u-sm-5 am-text-xs">




                    <a href="<?php echo U('Home/Product/show',array('id'=>$vo['product_id']));?> " class="">
                        <h3 class="am-margin-0">
                            <?php echo ($vo["title"]); ?></h3>
                        <div class="sku am-text-999" >

                            <span>  颜色分类:<?php echo ($vo["color"]); ?>;</span>
                            <span> 尺码: <?php echo F('Var_chicun')[$vo["chicun"]][name];?></span>
                            <span>外框: <?php echo F('Var_waikuang')[$vo["waikuang"]][name];?></span>
                         </div>
                    </a>







                </div>


                <div class="am-u-sm-3 am-text-right">





                    <div class="pay am-margin-top-sm am-cf div_info " >


                        <div class="">

                            <span class="am-text-danger am-text-sm"> ￥ <span id="price-<?php echo ($key); ?>"><?php echo ($vo["price"]); ?></span></span>




                        </div>
                        <div class=" ">x<?php echo ($vo["num"]); ?></div>



                    </div>



                </div>




            </div><?php endforeach; endif; else: echo "没有相关信息" ;endif; ?>

</div>




        <div class="am-block am-cf  am-padding-horizontal-sm am-text-xs am-text-right">

            <span class="am-fl">编号:<?php echo ($v["order_sn"]); ?></span>
            <span class="am-fr"> 共计<?php echo ($v["num"]); ?>件商品  合计￥<?php echo ($v["price_sum"]); ?>
</span>


        </div>







        <div class="  am-block am-cf am-margin-top-sm am-padding-sm common-border-top">

              <span class="am-fr ">
                  <a class="am-btn    btn-hui am-btn-xs" href="<?php echo U('User/Order/show',array('order_sn'=>$v['order_sn']));?>">查看</a>

            <?php if($v[status] == '1'): ?><a class="am-btn   btn-hui ajax-get  am-btn-xs" href="<?php echo U('User/Order/del',array('order_sn'=>$v['order_sn']));?>">取消订单</a>

  <a class="am-btn    btn-write am-btn-xs" href="<?php echo U('User/Order/pay',array('order_sn'=>$v['order_sn']));?>">立即付款</a><?php endif; ?>


                    <?php if($v[status] == '2'): ?><a class="am-btn   btn-hui   am-btn-xs" href="tel:0551-68564769">退货</a>


                        <a class="am-btn   btn-hui ajax-get  am-btn-xs" href="<?php echo U('User/Order/cui',array('order_sn'=>$v['order_sn']));?>">催货</a><?php endif; ?>



                    <?php if($v[status] == '3'): ?><a class="am-btn   btn-hui   am-btn-xs" href="tel:0551-68564769">退货</a>

                        <a class="am-btn   btn-write ajax-get  am-btn-xs" href="<?php echo U('User/Order/shouhuo',array('order_sn'=>$v['order_sn']));?>">确认确认收货</a><?php endif; ?>


                   <?php if($v[status] == '4'): ?><a class="am-btn   btn-hui   am-btn-xs" href="tel:0551-68564769">退货</a>

                       <a class="am-btn   btn-write   am-btn-xs" href="<?php echo U('User/Order/pingjia',array('order_sn'=>$v['order_sn']));?>">评价</a><?php endif; ?>



              </span>

        </div>


        </div>





    </div><?php endforeach; endif; else: echo "" ;endif; ?>


<div class="pages am-text-center">    <?php echo ($Page); ?>  </div>




<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-index  common-border-top "
     id="">
    

<section class="weui-menu am-text-xs" >
    <div class="weui-menu-inner">

        <a href="/"  <?php if($nav == 'home'): ?>class="active"<?php endif; ?>> <span class="bujinhua am-text-xl">&#xe807;</span></a>



    </div>
    <div class="weui-menu-inner">

        <a href="/Home/Product/index" <?php if($nav == 'product'): ?>class="active"<?php endif; ?>>

        <i class="am-icon-navicon"></i>
            <span class="am-navbar-label">全部商品</span>
        </a>

    </div>
    <div class="weui-menu-inner">

        <a href="/Home/Cart/index.html" <?php if($nav == 'cart'): ?>class="active"<?php endif; ?>>
            <span class="am-navbar-label">购物车</span>
        </a>
    </div>
    <div class="weui-menu-inner">

        <a href="/User" <?php if($nav == 'user'): ?>class="active"<?php endif; ?>>
            <span class="am-navbar-label">个人中心</span>
        </a>
        <!--<span>上线测试</span>-->
        <!--<ul>-->
            <!--<em></em>-->
            <!--<li>百度地图</li>-->
            <!--<li>百度一下</li>-->
            <!--<li>百度智能</li>-->
        <!--</ul>-->
    </div>


</section>
</div>

    <!--[if lt IE 9]>
<script src="/Statics/Home/js/jquery.11.1.js"></script>
<script src="/Statics/Home/js/modernizr.js"></script>
<script src="/Statics/Home/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/Statics/Home/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/Statics/Home/js/amazeui.min.js"></script>




<script src="/Statics/Home/js/sco/js/sco.message.js"></script>
<script src="/Statics/Home/js/common.js"></script>

<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>


    wx.config({
                debug: false,
                appId: '<?php echo ($jssign["appId"]); ?>',
                timestamp: '<?php echo ($jssign["timestamp"]); ?>',
            nonceStr: '<?php echo ($jssign["nonceStr"]); ?>',
            signature: '<?php echo ($jssign["signature"]); ?>',
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage']
    });

    var imgUrl='<?php echo ($imgUrl); ?>';
    var timeLineLink= '<?php echo ($timeLineLink); ?>';
    var tTitle= "<?php echo ($tTitle); ?>";
    var tContent= "<?php echo ($tContent); ?>";


    wx.ready(function () {



        wx.onMenuShareTimeline({
            title: tTitle, // 分享标题
            link:  timeLineLink, // 分享链接
            imgUrl:  imgUrl, // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });

        wx.onMenuShareAppMessage({
            title:  tTitle, // 分享标题
            desc:  tContent, // 分享描述
            link:  timeLineLink, // 分享链接
            imgUrl:  imgUrl, // 分享图标
            type: '', // 分享类型,music、video或link，不填默认为link
            dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });



    }, false);

</script>












</body>
</html>